t=('python','java','php','ruby','javascript')
# 元组的访问
print(t[0])
# 元组的切片
print(t[0:5:2])


# 元组的三种遍历
for i in t:
    print(i)

for i in range(len(t)):
    print(i,t[i])

for index,item in enumerate(t):
    print(index,item)

for index,item in enumerate(t,start=2):
    print(index,'===>',item)